/*
 * @Author       : 邱狮杰
 * @Date         : 2021-09-01 09:52:52
 * @LastEditTime: 2021-09-05 14:56:48
 * @FilePath: /new-hope/src/hooks/go.ts
 * @Description  :
 */
import { useRouter, RouteLocationRaw } from 'vue-router'

export function useGo() {
	const router = useRouter()
	function run(params: RouteLocationRaw) {
		router.replace(params)
	}
	return [run]
}

